<div class="gray-bg">
    <!--<div class="bg-light lter b-b wrapper-md">
	    <h1 class="m-n font-thin h3">房源管理</h1>
	</div>-->
	<div class="wrapper">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                		房源管理
                		<!--<button class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal_1" style="margin-top: -7px;">新建房源</button>-->
                </div>
                <div class="panel-body">
                    <form class="form-group">
                    	<div class="radio col-sm-2" style="padding: 0;">
					            <label class="radio-inline">
					                <input type="radio" checked="" value="FENSAN" ng-model="way" name="optionsRadios">分散式</label>
					            <label class="radio-inline">
					                <input type="radio" value="JIZHONG" ng-model="way" name="optionsRadios">集中式</label>
						</div>   
                        <div class="col-sm-4" style="padding: 0;">
                        	<div class="col-sm-4">
								<select class="inn_select" ng-model="pro" ng-change="proFunc(pro)">
									<option value="">省份 </option>
									<option value="{{k.pro_id}}" ng-repeat="k in prolist">{{k.name}}</option>
								</select>
							 </div>  
	                        <div class="col-sm-4">
	                            <select class="inn_select" ng-model="cty" ng-change="ctyFunc(cty)">
									<option value="">市/地区</option>
									<option value="{{k.city_id}}" ng-repeat="k in citylist">{{k.name}}</option>
								</select>
	                        </div>  
	                        <div class="col-sm-4">
								<select class="inn_select" ng-model="dis">
									<option value="">区/县 </option>
									<option value="{{k.dis_id}}" ng-repeat="k in dislist">{{k.name}}</option>
								</select>
							 </div>  
                        </div>  
                        <div class="col-sm-4">
                        	<div class="col-sm-6">
	                            <input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="uName" placeholder="小区名" />
	                        </div>
	                        <div class="col-sm-6">
								<input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="uDress" placeholder="地址" />
	                        </div>  
                        </div>
                        
                       <div class="col-sm-2">
                       	 	<button class="btn bg-color" ng-click="sear_1(way,pro,cty,dis,uName,uDress)">&nbsp;&nbsp;搜索&nbsp;&nbsp;</button>
                        </div> 
                       
                    </form>
                </div>
                <table class="table table-hover text-center">
				 	<thead>
				        <td>小区/编号</td>
				        <td>小区/公寓</td>
				        <td>地址</td>
				        <td>房源数量</td>
				        <td>操作</td>
			        </thead>
			        <tbody>
			        	<tr ng-repeat="x in list">
					        <td>{{x.districtNo}}</td>
					        <td>{{x.districtName}}</td>
					        <td>{{x.houseStreet.provinceId | proName:prolist }}{{x.houseStreet.cityId | cityName:oCityList}}{{x.houseStreet.dist | disName:oDisList}}{{x.houseStreet.street}}</td>
					        <td>{{x.houses.length}}</td>
					        <td>
					        	<button class="btn bg-color " data-toggle="modal" data-target="#modal_2" ng-click="alLook(x)">查看</button>
					        	<!--<button class="btn btn-danger" ng-click="oDel(x)">删除</button>-->
					        </td>
					    </tr>
			        </tbody>
			        <tfoot>
			        	<tr>
				            <td colspan="12" id="pager_2">
				               
				            </td>
				        </tr>
						
			        </tfoot>
				</table>
            </div>
        </div>
    </div>
</div>


</div>


<!--新建-->
<!--<div class="modal fade" id="modal_1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">新建小区/公寓</h4>
            </div>
            <div class="modal-body">
                 	<div class="row">
                 		<div class="radio col-sm-6">
				            <label class="radio-inline">
				                <input type="radio" checked="" value="FENSAN" id="" ng-model="way_1" name="optionsRadios">分散式</label>
				            <label class="radio-inline">
				                <input type="radio" value="JIZHONG" id="" ng-model="way_1" name="optionsRadios">集中式</label>
						</div>
                 	</div>
					<div class="row">
						<div class="col-sm-4">
							<select class="inn_select" ng-model="pro_1" ng-change="proFunc_1(pro_1)">
								<option value="">省份 </option>
								<option value="{{k.pro_id}}" ng-repeat="k in prolist">{{k.name}}</option>
							</select>
						 </div>  
	                    <div class="col-sm-4">
	                        <select class="inn_select" ng-model="cty_1" ng-change="ctyFunc_1(cty_1)">
								<option value="">市/地区</option>
								<option value="{{k.city_id}}" ng-repeat="k in citylist">{{k.name}}</option>
							</select>
	                    </div>  
	                    <div class="col-sm-4">
							<select class="inn_select" ng-model="dis_1">
								<option value="">区/县 </option>
								<option value="{{k.dis_id}}" ng-repeat="k in dislist">{{k.name}}</option>
							</select>
						 </div>  
					</div>
					<div class="row">
						<label class="col-sm-4">
                            &nbsp;<input type="search" class="form-control ng-pristine ng-valid ng-touched"  placeholder="小区名" />
                        </label>
                        <label class="col-sm-8">
							&nbsp;<input type="search" class="form-control ng-pristine ng-valid ng-touched"  placeholder="街道/门号" />
                        </label>  
					</div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" id="close" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary">创建</button>
            </div>
        </div>
    </div>
</div>-->

<!--编辑-->
	<div class="modal fade bs-example-modal-lg" id="modal_2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">房源详情</h4>
            </div>
            <div class="modal-body wrapper">
            	<div class="row">
            		<!--form进行excel导出-->
            		<form id="houseExportByUnit" class="col-sm-12" action="" method="post">
						<span class="col-sm-10 inn_padding">{{e.districtNo}}&nbsp;&nbsp;{{e.districtName}}&nbsp;&nbsp;{{e.houseStreet.provinceId | proName:prolist}}{{e.houseStreet.cityId | cityName:oCityList}}{{e.houseStreet.dist | disName:oDisList}}{{e.houseStreet.street}}&nbsp;&nbsp;房间数量 {{e.houses.length}}</span>
						<input type="hidden" name="floorNo" id="" value="{{allUnit.floorNo}}" />
						<input type="hidden" name="unit" id="" value="{{allUnit.unit}}" />
						<input type="hidden" name="houseDistrictId" id="" value="{{e.id}}" />
						<input type="hidden" name="address" id="" value="{{e.houseStreet.provinceId | proName:prolist}}{{e.houseStreet.cityId | cityName:oCityList}}{{e.houseStreet.dist | disName:oDisList}}{{e.houseStreet.street}}{{e.districtName}}" />
						<button type="submit" class="btn bg-color btn-xs "style="float: right;">导出excel表</button>
	             	</form>
	             	<div  ng-repeat="(key,oVal) in oMap">
	             		<div class="col-sm-12 inn_margin" ng-click="isCollapsed = !isCollapsed">
	             			<div class="col-sm-2 bg-light">
	             				<span class="glyphicon glyphicon-menu-down"></span>
		             			{{key | split_0}}栋
		             		</div>
		             		<div class="col-sm-10 bg-light">
		             			{{key | split_1}}单元{{oVal.length}}
              					<input id="oRadio" type="radio" name="radio" ng-click="updateSelection($event,key)" style="margin: 0;" value="{{key}}">
		             		</div>
		             	</div>
		             	<div class="col-sm-12" uib-collapse="isCollapsed" >
		             		<div class="col-sm-12 bg-light">
		             			
		             			<div class="col-sm-3 bg-light" ng-repeat="(oKey,value) in oVal">
			             			<div class="col-sm-4 text-center" style="background: white;margin-bottom: 4px;">
			             				{{oKey}}
			             			</div>
			             			<div ng-if="k" ng-repeat="k in value" class="col-sm-2 text-center" style="background: white;margin-bottom: 4px;padding: 0;">
			             				{{k}}
			             			</div>
			             		</div>
			             		
			             	</div>
		             	</div>
	             	</div>
	             	
            	</div>
             	
             	
             	
             	
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default " id="" data-dismiss="modal">取消</button>
                <!--<button type="button" class="btn btn-primary" disabled="disabled">保存</button>-->
            </div>
        </div>
    </div>
</div>
